package com.ctgu.j08.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ctgu.j08.vo.DUser;
import com.ctgu.j08.vo.Department;
import com.ctgu.j08.vo.Result;
import org.springframework.stereotype.Service;

/**
 * @version 1.0
 * @author: Saiya Wang
 * @date: 2021/5/28 20:09
 */
@Service
public interface DepartmentService extends IService<Department> {
    public Department getById(int departId);

    /**
     * 通过部门名获取部门
     * @param departName
     * @return
     */
    public Department getByDepartName(String departName);

    /**
     * 更新部门信息
     * @param department
     * @return
     */
    public Result editDepart(Department department);

    /**
     * 添加部门信息
     * @param department
     * @return
     */
    public Result addDepartment(Department department);

    /**
     * 通过id删除部门信息
     * @param departId
     * @return
     */
    public Result delDepartById(Integer departId);

    /**
     *
     * @return
     */
    public Result getAllDepartInfo();

    /**
     * 通过部门名查找
     * @param departName
     * @return
     */
    public Result searchDepartByName(String departName);
}
